﻿using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.XPath;

namespace SeriesUtil.Provider
{
    public class ThetvdbScrapper
    {
        // as described under http://www.thetvdb.com/wiki/index.php?title=API:mirrors.xml the uri is hardcoded
        private String uri = "http://thetdvdb.com";
        // this is the projects API-Key for thetvdb.com
        private String apiKey = "81E4E70E31D0CBEE";
        private String language;
        private String seriesName;
        private UInt32 seriesId;

        public ThetvdbScrapper(String seriesName)
        {            
            this.language = "en";
            this.seriesName = seriesName;
        }

        public ThetvdbScrapper(String seriesName, String language)
        {
            this.language = language;
            this.seriesName = seriesName;
        }

        private String SeriesUri()
        {
            String seriesUri = this.uri;

            return seriesUri;
        }

        private void GetSeriesId(String uri)
        {
            XPathDocument xml = new XPathDocument(uri);
            XPathNavigator nav = xml.CreateNavigator();
        }
    }
}
